set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_fifo.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_crc_gen.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_cmd_det.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_condt_det.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_pc_mem_short_fsm.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_pc_io_short_fsm.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_pc_short_completion_fsm.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_pc_put_pc_fsm.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_pc_put_np_fsm.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_pc_channel.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_oob_channel.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_register.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_resp_gen.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_rx_shifter.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_tx_shifter.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_vw_gpi_update.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_vw_channel.sv
set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_slave.sv

# Optional Modules
# Port 80
if {[info exists USE_ESPI_PORT80]} {
    set_global_assignment -name QIP_FILE ../../lib/common/espi_ip/port80_fifo/port80_fifo.qip
    set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/port80_if.v
    set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_port80_process.v
}

# Keyboard controller
if {[info exists USE_ESPI_KCS]} {
    set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/kcs_fifo.sv
    set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_kcs_process.sv
    set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_kcs_register.v
}

# UART
if {[info exists USE_ESPI_UART]} {
    set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/espi_vuart_process.sv
    set_global_assignment -name SYSTEMVERILOG_FILE ../../lib/common/espi_ip/uart_16550.v
}
